import apiCreator from '../../utils/apiCreator';
import config from '../../utils/config';

const api = apiCreator();
export default {
  // 情景模板获取
  getSceneTemplate: (query) => api.get(`${config.interfaces.type5}maat-risk/stressSceneSettings/getSceneTemplate`, query),
  // 选择情景查询风险因子配置
  getRiskFactorConfig: (query) => api.get(`${config.interfaces.type5}maat-risk/stressSceneSettings/getRiskFactorConfig`, query),
  // 获取维度下拉
  getDimensionList: (query) => api.post(`${config.interfaces.type5}maat-risk/stressSceneSettings/getDimensionList`, query),
  // 保存情景模板
  saveSceneTemplate: (query) => api.post(`${config.interfaces.type5}maat-risk/stressSceneSettings/saveSceneTemplate`, query),
  // 删除情景模板
  delSceneTemplate: (query) => api.post(`${config.interfaces.type5}maat-risk/stressSceneSettings/delSceneTemplate`, query),
  // 获取维度下拉
  getDictList: (query) => api.post(`${config.interfaces.type5}maat-risk/stressSceneSettings/getDictList`, query),
};
